package com.ssyc.common.bean;

/**
 * EventBus用来传递数据的类
 * Created by lenovo on 2016/12/28.
 */

public class BusInfo {
    public String studentName;//学生姓名
    public int score;//学生分数

    //ViewPager滚动事件对象
    public String vpScoll;

    public String msg;
    public int pos;

    public String answerFlag;

    public int useMoney;

    //分数
    public String addScore;

    //学生的rowId
    public int rowId;

    //班级号
    public String classNum;

    public BusInfo() {
    }

    public String getClassNum() {
        return classNum;
    }

    public void setClassNum(String classNum) {
        this.classNum = classNum;
    }

    public BusInfo(String vpScoll) {
        this.vpScoll = vpScoll;
    }


    public BusInfo(int useMoney) {
        this.useMoney = useMoney;
    }

    public BusInfo(String msg, int pos) {
        this.msg = msg;
        this.pos = pos;
    }

    public BusInfo(String msg, int pos, String answerFlag) {
        this.msg = msg;
        this.pos = pos;
        this.answerFlag = answerFlag;
    }


    public String getAddScore() {
        return addScore;
    }

    public void setAddScore(String addScore) {
        this.addScore = addScore;
    }

    public int getRowId() {
        return rowId;
    }

    public void setRowId(int rowId) {
        this.rowId = rowId;
    }

    @Override
    public String toString() {
        return "BusInfo{" +
                "msg='" + msg + '\'' +
                ", pos=" + pos +
                ", answerFlag='" + answerFlag + '\'' +
                '}';
    }


    //预习检测界面需要用到的事件对象
    private String chooseAnswer;//选择的答案

    //定义传递事件的类型 用于区分不同 事件,4代表为预习检测的事件
    private int type;

    public String getChooseAnswer() {
        return chooseAnswer;
    }

    public void setChooseAnswer(String chooseAnswer) {
        this.chooseAnswer = chooseAnswer;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }



    //题库传递相关数据的属性
    public int tkMsg;//题库更新的标识
    public  int typeId;//题目类型
    public boolean tkChooseResult;//作答是否正确
    public int tkChoosePos;//小题的位置
    public String tkChooseAnswer;//选择的答案或者填入的答案

}
